package org.springcloud.wisdom.springcloud_03_freshman.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("notice")
public class Notice {
    @TableId(type = IdType.AUTO,value = "wisdom.notice.id")
    //主键
    private Integer id;
    //标题
    @TableField("wisdom.notice.title")
    private String title;
    //内容
    @TableField("wisdom.notice.content")
    private String content;
    //发布时间
    @TableField("wisdom.notice.publishdt")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private String publishdt;
    //发布人
    @TableField("wisdom.notice.identity")
    private String identity;
    //审核状态
    @TableField("wisdom.notice.ispublic")
    private String ispublic;
    //审核不通过的理由
    @TableField("wisdom.notice.reason")
    private String reason;
    //是否被删除
    @TableField("wisdom.notice.isdel")
    private Integer isdel;
    //属于哪个模块
    @TableField("wisdom.notice.type")
    private Integer type;
}
